export const tableItem = [
    {
        prop: 'email',
        label: '邮箱',
        minWidth: '200',
    },
    {
        prop: 'authorizationCode',
        label: '授权码',
        minWidth: '200',
        showOverflowTooltip: false,
    },
    {
        prop: 'username',
        label: '用户名',
        minWidth: '150',
    },
    {
        prop: 'host',
        label: '域名',
        minWidth: '150',
    },
    {
        prop: 'port',
        label: '端口',
        minWidth: '100',
    },
    {
        prop: 'protocol',
        label: '协议',
        minWidth: '100',
    },
    {
        prop: 'enable',
        label: '状态',
        width: '100',
        slotName: 'enableSlot',
    },
    {
        prop: 'createTime',
        label: '创建时间',
        width: '180',
    },
    {
        prop: 'remark',
        label: '备注'
    },
    {
        prop: 'todo',
        label: '操作',
        width: '200',
        fixed: !window.isSmallScreen ? 'right' : false,
        slotName: 'todo',
        showOverflowTooltip: false,
    },

]
export default () => {
    return {
        tableItem,
        elTableConfig: {
            tooltipOptions: {
                popperClass: 'lmw_popper',
                effect: 'light',
            },
            stripe: false,
            rowKey: 'mailSenderConfigId',
            showOverflowTooltip: false,
        },
        showIndex: false,
        showChoose: true,
        pagination: true,
        // border: false,
    }
}
